#ifndef USERINFOWINDOW_H
#define USERINFOWINDOW_H

#include <QMainWindow>
#include <QLineEdit>
#include <QPushButton>
#include <QMessageBox>

class UserInfoWindow : public QMainWindow
{
    Q_OBJECT
public:
    explicit UserInfoWindow(QWidget *parent = nullptr);

signals:
    void userAuthenticated(const QString &username);

private:
    QLineEdit *usernameInput;
    QLineEdit *passwordInput;
    QPushButton *submitBtn;

    void setupUI();
    void saveUserInfo(const QString &username, const QString &password);
};

#endif // USERINFOWINDOW_H